import requests
from config import url, headers_web

class Teachingstatusstatistics:
    def __init__(self):
        self.url = url
        self.headers = headers_web

    @classmethod
    def get_visiting_times(cls, url: str, params=None, headers=headers_web):
        """
        @Summary:获取起始时间到此刻的网站访问人次
        @Description:调用方：矿大门户
        :param url:
        :param params:
        :param headers:
        """
        url = url + "/authoritycontrolplatformapi/v1/teachingstatusstatistic/getvisitingtimes"
        r = requests.get(url=url, headers=headers, params=params)
        return r